package com.xzy.mybatis.service;

import com.xzy.mybatis.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {

    List<User> getUserList();

    User getUserById(Integer id);

    User getUserByName(String name);

    int updateUser(User user);

    int addUser(User user);

    int delUser(Integer id);
}
